//
//  IGTopicCommentApi.h
//  jingdongfang
//
//  Created by BOE on 2017/9/13.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGBaseRequest.h"
#import "IGCommentBean.h"

/** 评论的是作品还是话题 */
typedef NS_ENUM(NSInteger, IGParentType) {
    IGParentTypeArtWork = 1,            ///>评论作品
    IGParentTypeTopic,                  ///>评论话题
    IGParentTypeSubject                 ///>评论专题
};
/** 评论的类型 */
typedef NS_ENUM(NSInteger, IGCommentType) {
    IGCommentTypeFirst = 1,             ///>一级评论
    IGCommentTypeSecond                 ///>二级评论回复
};

@interface IGCommentApi : IGBaseRequest
    
@property (nonatomic, copy) NSString *pid;                      ///>作品或者话题ID
@property (nonatomic, assign) IGParentType parentType;          ///>评论的是作品(1)还是话题(2)还是专题(3)
@property (nonatomic, copy) NSString *content;                  ///>回复的内容

@property (nonatomic, assign) IGCommentType commentType;        ///>评论是一级评论(1)还是二级评论(2)
@property (nonatomic, copy) NSString *parentUid;                ///>一级评论时是发布者ID；二级评论时是被回复者的ID
@property (nonatomic, copy) NSString *cId;                      ///>二级评论时必须被回复的评论ID
@property (nonatomic, copy) NSString *opusId;                   ///>话题中关联作品的作品ID
    
@end

@interface IGCommentModel : IGBaseModel
    
@property (nonatomic, copy) NSString *msg;
@property (nonatomic, copy) IGCommentBean *comment;

@end

@interface IGCommentResp : IGBaseResp
    
@property (nonatomic, copy) IGCommentModel *data;

@end











